package android.FiltrosJava;

public class ScanLine extends PointFilter{//AbstractImageBasic {
	protected double[] trans = {0.8, 0.8 ,0.8 ,1 ,1};
	
	public int[] computeFilter(int px, int py, int[] imageData) {
		int p = py % 5;
		imageData[0] = (short) (trans[p] * imageData[0]);
		imageData[1] = (short) (trans[p] * imageData[1]);
		imageData[2] = (short) (trans[p] * imageData[2]);
		
		return imageData;		
	}

	@Override
	public int[] applyFilter(int[] pixels) {
		// TODO Auto-generated method stub
		return null;
	}
}